<template>
  <div>
    <el-dialog v-bind="$attrs" v-on="$listeners" :visible="isOpen"  @open="onOpen" @close="onClose" title="更多操作">
      <el-form ref="elForm" :model="formData" :rules="rules" size="medium" label-width="100px">
        <el-table :data="listOfColleges.selected">
          <el-table-column type="selection" width="55" align="center"/>
          <el-table-column label="学院名称" align="center" prop="XY"/>
        </el-table>
      </el-form>
      <div slot="footer">
        <el-button @click="close">取消</el-button>
        <el-button type="primary" @click="handleConfirm">确定</el-button>
      </div>
    </el-dialog>
  </div>
</template>
<script>

  export default {
    inheritAttrs: false,
    components: {},
    props: {
      isOpen:{
        type:Boolean,
        default:false
      },
      listOfColleges:{
        type:Object
      },

    },
    data() {
      return {
        formData: {},
        rules: {},
      }
    },
    computed: {},
    watch: {},
    created() {},
    mounted() {},
    methods: {
      onOpen() {
        console.log(this.listOfColleges)
      },
      onClose() {
        this.$refs['elForm'].resetFields()
      },
      close() {
        this.$emit('update:visible', false)
      },
      handleConfirm() {
        this.$refs['elForm'].validate(valid => {
          if (!valid) return
          this.close()
        })
      },
    }
  }
</script>
<style>
</style>
